package com.cykj.pos.util;

public enum HqyMerFunctionEnumsV2 {

    BATCH_PAYMENT("batchPayment", "批量出款接口"),
    QUERY_PAYMENT("queryPayment", "查询出款明细"),
    USER_SIGN("userSign", "用户签约"),
    SEARCH_MER("searchMer", "查询商户");


    private final String code;

    private final String desc;

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    HqyMerFunctionEnumsV2(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static HqyMerFunctionEnumsV2 getTypeEnum(String code) {
        if (code == null) {
            return null;
        }
        for (HqyMerFunctionEnumsV2 type : values()) {
            if (type.getCode().equals(code)) {
                return type;
            }
        }
        return null;
    }

}
